import WQRequest from "@/service/index.js";
//获取今日计划
export function getTodayPlan(data) {
    return WQRequest.post({
        url: "plancyclemanagement/getCureDatePlan",
        data
    });
}
//获取信息
export function getDeviceInfo(equipmentId) {
    return WQRequest.get({
        url: `equipmentmanagement/getindexequipmentstatisticsinfo/${equipmentId}`
    });
}

//获取维保数量
export function getMaintenanceCount(equipmentId) {
    return WQRequest.get({
        url: `ordermaintenanceordermanagement/getmaintenanceorderstatisticslist/${equipmentId}`
    });
}

//获取设备数量
export function getDeviceCount(id) {
    return WQRequest.get({
        url: `earlywarningstatistics/getequipmentstatestatistics/${id}`
    });
}
//获取振动传感器
export function getShakeSensorStatistics(data) {
    return WQRequest.post({
        url: "home/getVibrationRealTimeDataSensorAsync",
        data
    });
}
//获取应变传感器
export function getEmergencySensorStatistics(data) {
    return WQRequest.post({
        url: "home/getStrainAsync",
        data
    });
}
//获取报修数据
export function getRepairStatistics(equipmentCode) {
    return WQRequest.get({
        url: `repairaggregation/getrepairstatekeyvalues/${equipmentCode}`
    });
}
//获取设备数据
export function getDeviceTime(data) {
    return WQRequest.post({
        url: "workingConditions/getDeviceStatusAsync",
        data
    });
}
//获取设备数据
export function getDeviceTable(data) {
    return WQRequest.post({
        url: "workingConditions/getStatisticsOperatingmodeloadAsync",
        data
    });
}
//获取趋势健康度
export function getHealth(equipmentCode) {
    return WQRequest.get({
        url: `faultMonitoring/getStatisticsHealth/${equipmentCode}`
    });
}
//获取消息中心
export function getMessage(equipmentCode) {
    return WQRequest.get({
        url: `messageCenter/getIndexAlarmMessageList/${equipmentCode}`
    });
}

//获取机器
export function getEquipmentCode(id) {
    return WQRequest.get({
        url: `home/getEquipmentCode/${id}`
    });
}

//获取第一次的路径
export function getOverallScene() {
    return WQRequest.get({
        url: `home/getOverallScene`
    });
}
